Optimal. Leaf size=83 \[ \frac{2 \tan (e+f x)}{5 a^3 c f}-\frac{\sec (e+f x)}{5 c f \left (a^3 \sin (e+f x)+a^3\right )}-\frac{\sec (e+f x)}{5 a c f (a \sin (e+f x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.147634, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2736, 2672, 3767, 8} \[ \frac{2 \tan (e+f x)}{5 a^3 c f}-\frac{\sec (e+f x)}{5 c f \left (a^3 \sin (e+f x)+a^3\right )}-\frac{\sec (e+f x)}{5 a c f (a \sin (e+f x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2672
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{(a+a \sin (e+f x))^3 (c-c \sin (e+f x))} \, dx &=\frac{\int \frac{\sec ^2(e+f x)}{(a+a \sin (e+f x))^2} \, dx}{a c}\\ &=-\frac{\sec (e+f x)}{5 a c f (a+a \sin (e+f x))^2}+\frac{3 \int \frac{\sec ^2(e+f x)}{a+a \sin (e+f x)} \, dx}{5 a^2 c}\\ &=-\frac{\sec (e+f x)}{5 a c f (a+a \sin (e+f x))^2}-\frac{\sec (e+f x)}{5 c f \left (a^3+a^3 \sin (e+f x)\right )}+\frac{2 \int \sec ^2(e+f x) \, dx}{5 a^3 c}\\ &=-\frac{\sec (e+f x)}{5 a c f (a+a \sin (e+f x))^2}-\frac{\sec (e+f x)}{5 c f \left (a^3+a^3 \sin (e+f x)\right )}-\frac{2 \operatorname{Subst}(\int 1 \, dx,x,-\tan (e+f x))}{5 a^3 c f}\\ &=-\frac{\sec (e+f x)}{5 a c f (a+a \sin (e+f x))^2}-\frac{\sec (e+f x)}{5 c f \left (a^3+a^3 \sin (e+f x)\right )}+\frac{2 \tan (e+f x)}{5 a^3 c f}\\ \end{align*}
Mathematica [A] time = 0.58773, size = 111, normalized size = 1.34 \[ \frac{-12 \sin (e+f x)-32 \sin (2 (e+f x))-12 \sin (3 (e+f x))+8 \sin (4 (e+f x))+32 \cos (e+f x)-12 \cos (2 (e+f x))+32 \cos (3 (e+f x))+3 \cos (4 (e+f x))-15}{160 a^3 c f (\sin (e+f x)-1) (\sin (e+f x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.06, size = 101, normalized size = 1.2 \begin{align*} 2\,{\frac{1}{{a}^{3}cf} \left ( -1/8\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-1}-2/5\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-5}+ \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-4}-3/2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-3}+5/4\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-2}-{\frac{7}{8\,\tan \left ( 1/2\,fx+e/2 \right ) +8}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.13727, size = 285, normalized size = 3.43 \begin{align*} -\frac{2 \,{\left (\frac{3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac{10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac{10 \, \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac{5 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}} + 2\right )}}{5 \,{\left (a^{3} c + \frac{4 \, a^{3} c \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac{5 \, a^{3} c \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac{5 \, a^{3} c \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac{4 \, a^{3} c \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}} - \frac{a^{3} c \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}}\right )} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.37743, size = 208, normalized size = 2.51 \begin{align*} \frac{4 \, \cos \left (f x + e\right )^{2} +{\left (2 \, \cos \left (f x + e\right )^{2} - 3\right )} \sin \left (f x + e\right ) - 2}{5 \,{\left (a^{3} c f \cos \left (f x + e\right )^{3} - 2 \, a^{3} c f \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 2 \, a^{3} c f \cos \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 17.9375, size = 738, normalized size = 8.89 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.1182, size = 142, normalized size = 1.71 \begin{align*} -\frac{\frac{5}{a^{3} c{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}} + \frac{35 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 90 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 120 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + 70 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 21}{a^{3} c{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 1\right )}^{5}}}{20 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]